<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('SysModule/edit')}">
        <input type="hidden" name="id" value="{$info.id|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">模块标题</label>
            <div class="col-sm-8">
                <input name="title" class="form-control" type="text" placeholder="请输入模块标题" value="{$info.title|default=''}" required/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">模块名称</label>
            <div class="col-sm-8">
                <input name="name" class="form-control" type="text" placeholder="请输入模块名" value="{$info.name|default=''}" readonly/>
                <span class="help-block m-b-none">模块名称只能为字母(创建模块之后不能修改)</span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">模块介绍</label>
            <div class="col-sm-8">
                <textarea name="intro" class="form-control" cols="80" rows="2">{$info.intro|default=''}</textarea>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">作者</label>
            <div class="col-sm-8">
                <input name="author" class="form-control" type="text" placeholder="输入作者" value="{$info.author|default=''}"/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">作者网址</label>
            <div class="col-sm-8">
                <input name="author_url" class="form-control" type="text" placeholder="输入作者网址" value="{$info.author_url|default=''}"/>
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">版本号</label>
            <div class="col-sm-8">
                <input name="version" class="form-control" type="text" placeholder="输入版本号" value="{$info.version|default=''}" />
                <span class="help-block m-b-none"></span> </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">关联数据表</label>
            <div class="col-sm-8">
                <textarea name="tables" class="form-control" cols="80" rows="2">{$info.tables|default=''}</textarea>
                <span class="help-block m-b-none">关联数据表是指模块所需要的数据表名称，如果有多个表用英文逗号（,）分隔。如：table1,table2</span> </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="layout/save_btn"}
            </div>
        </div>
    </form>
</div>